<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
    <title>PHPXRef 0.7 : OpenSSO PHP Library 1.5.1 : Detail view of open-sso.abstract.php</title>
    <link rel="stylesheet" href="sample.css" type="text/css">
    <link rel="stylesheet" href="sample-print.css" type="text/css" media="print">
    <style id="hilight" type="text/css"></style>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body bgcolor="#ffffff" text="#000000" link="#801800" vlink="#300540" alink="#ffffff">
<table class="pagetitle" width="100%">
	<tr>
        <td valign="top" class="pagetitle">
            [ <a href="index.html">Index</a> ]
        </td>
        <td align="right" class="pagetitle">
		    <h2 style="margin-bottom: 0px">PHP Cross Reference of OpenSSO PHP Library 1.5.1</h2>
	    </td>
    </tr>
</table>


<!-- Generated by PHPXref 0.7 at Fri Jan  8 00:38:44 2010 -->
<!-- PHPXref (c) 2000-2007 Gareth Watts - gareth@omnipotent.net -->
<!-- http://phpxref.sourceforge.net/ -->

<script src="phpxref.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
ext='.html';
relbase='';
subdir='';
filename='open-sso.abstract.php.html';
cookiekey='opensso-phplib_1.5';
handleNavFrame(relbase, subdir, filename);

// -->
</script>
<script language="JavaScript" type="text/javascript">
if (gwGetCookie('xrefnav')=='off')
  document.write('<p class="navlinks">[ <a href="javascript:navOn()">Show Explorer<\/a> ]<\/p>');
else
  document.write('<p class="navlinks">[ <a href="javascript:navOff()">Hide Explorer<\/a> ]<\/p>');
</script>
<noscript>
<p class="navlinks">
[ <a href="nav.html" target="_top">Show Explorer</a> ]
[ <a href="index.html" target="_top">Hide Navbar</a> ]
</p>
</noscript>
<script language="JavaScript" type="text/javascript">
<!--

document.writeln('<table align="right" class="searchbox-link"><tr><td><a class="searchbox-link" href="javascript:void(0)" onMouseOver="showSearchBox()">Search</a><br>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0" class="searchbox" id="searchbox">');
document.writeln('<tr><td class="searchbox-title">');
document.writeln('<a class="searchbox-title" href="javascript:showSearchPopup()">Search History +</a>');
document.writeln('<\/td><\/tr>');

document.writeln('<tr><td class="searchbox-body" id="searchbox-body">');
document.writeln('<form name="search" style="margin:0px; padding:0px" onSubmit=\'return jump()\'>');
document.writeln('<a class="searchbox-body" href="_classes/index.html">Class<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="classname"><br>');
document.writeln('<a id="funcsearchlink" class="searchbox-body" href="_functions/index.html">Function<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="funcname"><br>');
document.writeln('<a class="searchbox-body" href="_variables/index.html">Variable<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="varname"><br>');
document.writeln('<a class="searchbox-body" href="_constants/index.html">Constant<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="constname"><br>');
document.writeln('<a class="searchbox-body" href="_tables/index.html">Table<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="tablename"><br>');
document.writeln('<input type="submit" class="searchbox-button" value="Search">');
document.writeln('<\/form>');
document.writeln('<\/td><\/tr><\/table>');
document.writeln('<\/td><\/tr><\/table>');
// -->
</script>
<div id="search-popup" class="searchpopup"><p id="searchpopup-title" class="searchpopup-title">title</p><div id="searchpopup-body" class="searchpopup-body">Body</div><p class="searchpopup-close"><a href="javascript:gwCloseActive()">[close]</a></p></div>
<h2 class="details-heading"><a href="./index.html">/</a> -> <a href="open-sso.abstract.php.source.html">open-sso.abstract.php</a> (summary)</h2>
<div class="details-summary">
<p class="viewlinks">[<a href="open-sso.abstract.php.source.html">Source view</a>]
[<a href="javascript:window.print();">Print</a>]
[<a href="_stats.html">Project Stats</a>]</p>
<p><b>Core Absctract for OpenSSO PHP library. This class implements the API and the core functions.</b></p>
<table>
<tr><td align="right">Author: </td><td>Pásztor Gergő <<a href="mailto:pairghu@gmail.com">pairghu@gmail.com</a>> from KirDev <<a href="mailto:kir-dev@sch.bme.hu">kir-dev@sch.bme.hu</a>></td></tr>
<tr><td align="right">Category: </td><td>OpenSSO_PHP</td></tr>
<tr><td align="right">Copyright: </td><td>Copyright (c) 2009, KirDev</td></tr>
<tr><td align="right">License: </td><td><a href="http://www.opensource.org/licenses/gpl-license.php" target="_blank">http://www.opensource.org/licenses/gpl-license.php</a> GPL</td></tr>
<tr><td align="right">Link: </td><td><a href="http://kir-dev.sch.bme.hu/opensso-phplib/" target="_blank">http://kir-dev.sch.bme.hu/opensso-phplib/</a></td></tr>
<tr><td align="right">Package: </td><td>OpenSSO_PHP</td></tr>
<tr><td align="right">Version: </td><td>1.5.1</td></tr>
<tr><td align="right">File Size: </td><td>904 lines (25 kb)</td></tr>
<tr><td align="right">Included or required: </td><td><a href="open-sso.abstract.php.xref.html">1 time</a></td></tr>
<tr><td align="right" valign="top">Referenced: </td><td>0 times</td></tr>
<tr><td align="right" valign="top">Includes or requires: </td><td>2 files<br>&nbsp;<a href="config.php.html">config.php</a>
<br>&nbsp;<a href="open-sso.interface.php.html">open-sso.interface.php</a>
</td></tr>
</table>
<h3>Defines 28 functions</h3>
<div class="inset">
&nbsp;&nbsp;<a href="#hooklogin">hookLogin</a>()<br>
&nbsp;&nbsp;<a href="#hooklogout">hookLogout</a>()<br>
&nbsp;&nbsp;<a href="#hookiserror">hookIsError</a>()<br>
&nbsp;&nbsp;<a href="#hookerror">hookError</a>()<br>
&nbsp;&nbsp;<a href="#opensso_abstract">openSSO_Abstract</a>()<br>
&nbsp;&nbsp;<a href="#__construct">__construct</a>()<br>
&nbsp;&nbsp;<a href="#__destruct">__destruct</a>()<br>
&nbsp;&nbsp;<a href="#_loadconfig">_loadConfig</a>()<br>
&nbsp;&nbsp;<a href="#_iserror">_isError</a>()<br>
&nbsp;&nbsp;<a href="#server">server</a>()<br>
&nbsp;&nbsp;<a href="#cookie">cookie</a>()<br>
&nbsp;&nbsp;<a href="#_path2url">_path2url</a>()<br>
&nbsp;&nbsp;<a href="#_redirect">_redirect</a>()<br>
&nbsp;&nbsp;<a href="#https">https</a>()<br>
&nbsp;&nbsp;<a href="#http">http</a>()<br>
&nbsp;&nbsp;<a href="#ishttps">isHttps</a>()<br>
&nbsp;&nbsp;<a href="#_setgroups">_setGroups</a>()<br>
&nbsp;&nbsp;<a href="#_setvirid">_setVirid</a>()<br>
&nbsp;&nbsp;<a href="#_login">_login</a>()<br>
&nbsp;&nbsp;<a href="#_logout">_logout</a>()<br>
&nbsp;&nbsp;<a href="#login">logIn</a>()<br>
&nbsp;&nbsp;<a href="#logout">logOut</a>()<br>
&nbsp;&nbsp;<a href="#trigger">trigger</a>()<br>
&nbsp;&nbsp;<a href="#islogin">isLogin</a>()<br>
&nbsp;&nbsp;<a href="#_isreallogin">_isRealLogin</a>()<br>
&nbsp;&nbsp;<a href="#_getreturnparam">_getReturnParam</a>()<br>
&nbsp;&nbsp;<a href="#getuserdata">getUserData</a>()<br>
&nbsp;&nbsp;<a href="#setuserdata">setUserData</a>()<br>
</div>
</div>
<br><div class="details-funclist">
<div class="details-classtitle"><a name="functions"><b>Functions</b></a></div>
<div class="details-classinfo">
Functions that are not part of a class:<br><br>
<div class="inset"><table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="hooklogin" onClick="logFunction('hooklogin', 'open-sso.abstract.php.source.html#l94')" href="open-sso.abstract.php.source.html#l94">hookLogin</a>()&nbsp;&nbsp;
<a href="_functions/hooklogin.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Hook: Login<BR>
Call this function after the lib checked the required user data, and created the session.<BR>
(Call this function after the login method.)<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="hooklogout" onClick="logFunction('hooklogout', 'open-sso.abstract.php.source.html#l104')" href="open-sso.abstract.php.source.html#l104">hookLogout</a>()&nbsp;&nbsp;
<a href="_functions/hooklogout.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Hook: Logout<BR>
Call this function after the lib &quot;destroy&quot; the session.<BR>
(Call this function after the logout method.)<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="hookiserror" onClick="logFunction('hookiserror', 'open-sso.abstract.php.source.html#l114')" href="open-sso.abstract.php.source.html#l114">hookIsError</a>()&nbsp;&nbsp;
<a href="_functions/hookiserror.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Hook: Is Error?<BR>
Call this function to determine that error is occured or not.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (bool) 'TRUE' if error is occured and 'FALSE' otherwise.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="hookerror" onClick="logFunction('hookerror', 'open-sso.abstract.php.source.html#l123')" href="open-sso.abstract.php.source.html#l123">hookError</a>()&nbsp;&nbsp;
<a href="_functions/hookerror.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Hook: Error<BR>
Call this function when the IDP or the SP is down.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="opensso_abstract" onClick="logFunction('opensso_abstract', 'open-sso.abstract.php.source.html#l161')" href="open-sso.abstract.php.source.html#l161">openSSO_Abstract</a>()&nbsp;&nbsp;
<a href="_functions/opensso_abstract.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>PHP4 constructor<BR>
</b><BR></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="__construct" onClick="logFunction('__construct', 'open-sso.abstract.php.source.html#l237')" href="open-sso.abstract.php.source.html#l237">__construct</a>()&nbsp;&nbsp;
<a href="_functions/__construct.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>PHP5 constructor.<BR>
Use the PHP4 constructor.<BR>
</b><BR></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="__destruct" onClick="logFunction('__destruct', 'open-sso.abstract.php.source.html#l247')" href="open-sso.abstract.php.source.html#l247">__destruct</a>()&nbsp;&nbsp;
<a href="_functions/__destruct.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>PHP5 destructor<BR>
</b><BR></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_loadconfig" onClick="logFunction('_loadconfig', 'open-sso.abstract.php.source.html#l256')" href="open-sso.abstract.php.source.html#l256">_loadConfig</a>()&nbsp;&nbsp;
<a href="_functions/_loadconfig.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Load config and set default values.<BR>
Default values make more compatibility to older versions.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_iserror" onClick="logFunction('_iserror', 'open-sso.abstract.php.source.html#l327')" href="open-sso.abstract.php.source.html#l327">_isError</a>()&nbsp;&nbsp;
<a href="_functions/_iserror.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Is Error?<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (bool) 'TRUE' if error is occured and 'FALSE' otherwise.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="server" onClick="logFunction('server', 'open-sso.abstract.php.source.html#l360')" href="open-sso.abstract.php.source.html#l360">server</a>(<a href="_variables/element.html">$element</a>)&nbsp;&nbsp;
<a href="_functions/server.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Get the element of the '$_SERVER' array.<BR>
</b><BR><b>param:</b> (string) $element Element's name. For example: 'REMOTE_USER' -&gt; $_SERVER['REMOTE_USER']<br>
<b>return:</b> (bool) FALSE if the element isn't setted, and the value of the element if is setted.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="cookie" onClick="logFunction('cookie', 'open-sso.abstract.php.source.html#l372')" href="open-sso.abstract.php.source.html#l372">cookie</a>(<a href="_variables/element.html">$element</a>)&nbsp;&nbsp;
<a href="_functions/cookie.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Get the element of the '$_COOKIE' array.<BR>
</b><BR><b>param:</b> (string) $element Element's name. For example: 'sessionid' -&gt; $_COOKIE['sessionid']<br>
<b>return:</b> (bool) FALSE if the element isn't setted, and the value of the element if is setted.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_path2url" onClick="logFunction('_path2url', 'open-sso.abstract.php.source.html#l385')" href="open-sso.abstract.php.source.html#l385">_path2url</a>(<a href="_variables/path.html">$path</a> = '')&nbsp;&nbsp;
<a href="_functions/_path2url.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Create URL from path.<BR>
</b><BR><b>param:</b> (string) $path The path of the page<br>
<b>return:</b> (string) The complete URL<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_redirect" onClick="logFunction('_redirect', 'open-sso.abstract.php.source.html#l407')" href="open-sso.abstract.php.source.html#l407">_redirect</a>(<a href="_variables/url.html">$url</a>, <a href="_variables/redirectLoop.html">$redirectLoop</a> = '')&nbsp;&nbsp;
<a href="_functions/_redirect.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Redirect the browser.<BR>
If you set the second parameter this function save from redirect looping. After the 5. redirect stop it.<BR>
When you exit from the loop use this code:<BR>
$this-&gt;setSessionData('sso_loop_&lt;loop name&gt;', 0);<BR>
</b><BR><b>param:</b> (string) $url Where to redirect.<br>
<b>param:</b> (string) $redirectLoop The unique name of the redirect loop. One name - one loop.<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="https" onClick="logFunction('https', 'open-sso.abstract.php.source.html#l441')" href="open-sso.abstract.php.source.html#l441">https</a>()&nbsp;&nbsp;
<a href="_functions/https.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Get HTTPS connection, not HTTP.<BR>
If the user request this 'page' without SSL (HTTP) this function redirect to the secured version of the 'page'<BR>
(HTTPS). For example: http://example.org/dir/file.php?var=1 redirect to https://example.org/dir/file.php?var=1<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="http" onClick="logFunction('http', 'open-sso.abstract.php.source.html#l459')" href="open-sso.abstract.php.source.html#l459">http</a>()&nbsp;&nbsp;
<a href="_functions/http.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Get HTTP connection, not HTTPS.<BR>
If the user request this 'page' with SSL (HTTPS) this function redirect to the non secured version of the 'page'<BR>
(HTTP). For example: https://example.org/dir/file.php?var=1 redirect to http://example.org/dir/file.php?var=1<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="ishttps" onClick="logFunction('ishttps', 'open-sso.abstract.php.source.html#l477')" href="open-sso.abstract.php.source.html#l477">isHttps</a>()&nbsp;&nbsp;
<a href="_functions/ishttps.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Is secured, HTTPS connection?.<BR>
If the user request this 'page' without SSL (HTTP) this function redirect to the secured version of the 'page'<BR>
(HTTPS). For example: http://example.org/dir/file.php?var=1 redirect to https://example.org/dir/file.php?var=1<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (bool) TRUE if is a HTTPS connection and FALSE is a HTTP connection.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_setgroups" onClick="logFunction('_setgroups', 'open-sso.abstract.php.source.html#l494')" href="open-sso.abstract.php.source.html#l494">_setGroups</a>()&nbsp;&nbsp;
<a href="_functions/_setgroups.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Set groups<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (array) Syntax:<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_setvirid" onClick="logFunction('_setvirid', 'open-sso.abstract.php.source.html#l527')" href="open-sso.abstract.php.source.html#l527">_setVirid</a>()&nbsp;&nbsp;
<a href="_functions/_setvirid.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Set VirID<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (string) VIRID<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_login" onClick="logFunction('_login', 'open-sso.abstract.php.source.html#l546')" href="open-sso.abstract.php.source.html#l546">_login</a>()&nbsp;&nbsp;
<a href="_functions/_login.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Login the user to the application.<BR>
Check required user data, create session, update user's SSO data or create user.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_logout" onClick="logFunction('_logout', 'open-sso.abstract.php.source.html#l604')" href="open-sso.abstract.php.source.html#l604">_logout</a>()&nbsp;&nbsp;
<a href="_functions/_logout.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Logout the user from the application.<BR>
&quot;Destroy&quot; session. Delete user name.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="login" onClick="logFunction('login', 'open-sso.abstract.php.source.html#l621')" href="open-sso.abstract.php.source.html#l621">logIn</a>()&nbsp;&nbsp;
<a href="_functions/login.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Login the SSO user.<BR>
Use these function in your login page.<BR>
</b><BR>WARNING: This function is can't garantee that the user logged in!<BR>
You can always use the 'isLogin();' function after this function to check that the user really logged in.<BR>
<BR>
<b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="logout" onClick="logFunction('logout', 'open-sso.abstract.php.source.html#l678')" href="open-sso.abstract.php.source.html#l678">logOut</a>()&nbsp;&nbsp;
<a href="_functions/logout.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Logout the SSO user.<BR>
Use these function in your logout page.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="trigger" onClick="logFunction('trigger', 'open-sso.abstract.php.source.html#l749')" href="open-sso.abstract.php.source.html#l749">trigger</a>(<a href="_variables/url.html">$url</a> = '')&nbsp;&nbsp;
<a href="_functions/trigger.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Trigger.<BR>
These function create a simple redirect to the login page.<BR>
Use these function in your trigger page.<BR>
In default you shouldn't use these function. But if you should put trigger to another page than the default<BR>
('trigger.php'), you can do this with this function.<BR>
</b><BR><b>param:</b> (string) $url The URL of the login page. If not setted redirect to the 'loginPage' config. If the this config<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="islogin" onClick="logFunction('islogin', 'open-sso.abstract.php.source.html#l769')" href="open-sso.abstract.php.source.html#l769">isLogin</a>()&nbsp;&nbsp;
<a href="_functions/islogin.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Is the user logged in?.<BR>
Look after in session that the user is logged in or not.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (bool) TRUE if the user logged in and FALSE if not.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_isreallogin" onClick="logFunction('_isreallogin', 'open-sso.abstract.php.source.html#l783')" href="open-sso.abstract.php.source.html#l783">_isRealLogin</a>()&nbsp;&nbsp;
<a href="_functions/_isreallogin.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Check that the user is logged or not in IDP and in the application server.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (bool) TRUE if logged in and FALSE is not.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="_getreturnparam" onClick="logFunction('_getreturnparam', 'open-sso.abstract.php.source.html#l806')" href="open-sso.abstract.php.source.html#l806">_getReturnParam</a>()&nbsp;&nbsp;
<a href="_functions/_getreturnparam.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Get the last page URL.<BR>
Get the URL from the URL's parameter, but if it's not exists get it from the 'HTTP_REFERER' server variable.<BR>
</b><BR><b>param:</b> void<br>
<b>return:</b> (string|bool) FALSE if the URL not setted, and the complete URL of the last page if setted.<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="getuserdata" onClick="logFunction('getuserdata', 'open-sso.abstract.php.source.html#l833')" href="open-sso.abstract.php.source.html#l833">getUserData</a>(<a href="_variables/dataName.html">$dataName</a> = '')&nbsp;&nbsp;
<a href="_functions/getuserdata.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Get the user's data.<BR>
Logged in usage only.<BR>
</b><BR><b>param:</b> (string) $dataName The name of the user's data. Use 'sso_' prefix to access the user's SSO data.<br>
<b>return:</b> (array|bool|multi) The value of the user's data. If '$dataName' is empty return a single array with all of<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="setuserdata" onClick="logFunction('setuserdata', 'open-sso.abstract.php.source.html#l874')" href="open-sso.abstract.php.source.html#l874">setUserData</a>(<a href="_variables/data.html">$data</a>)&nbsp;&nbsp;
<a href="_functions/setuserdata.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>Set the user's data.<BR>
Store user's data with 'updateUser();' function. Only accept none SSO data!<BR>
Logged in usage only.<BR>
</b><BR><b>param:</b> (string) $data Single array of the user's data. Keys represents the data name.<br>
<b>return:</b> void<br>
</td></tr></table>

<br>
</div></div>

</div>
<!-- A link to the phpxref site in your customized footer file is appreciated ;-) -->
<br><hr>
<table width="100%">
	<tr><td>Generated: Fri Jan  8 00:38:44 2010</td>
	<td align="right"><i>Cross-referenced by <a href="http://phpxref.sourceforge.net/">PHPXref 0.7</a></i></td>
	</tr>
</table>
</body></html>
